package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.ticketorder.TicketOrders;
import com.victor.entity.ticketorder.TicketorderUser;

@Mapper
public interface TicketOrdersDao {
	/**
	 * 删除订单
	 * @param id
	 * @return
	 */
    boolean deleteByPrimaryKey(int[] id);
    /**
     * 添加票务订单
     * @param record
     * @return
     */
    boolean insertSelective(TicketOrders record);
    /**
     * 修改订单
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(TicketOrders record);
    /**
     * 查询全部
     * @return
     */
	List<TicketOrders> selAll(@Param("flag")String flag,@Param("useflag")String useflag,@Param("search")String search,@Param("start")String start,@Param("end")String end);
	/**
	 * 根据number查询
	 * @param number
	 * @return
	 */
	List<TicketOrders> selByNumber(String number);
	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	TicketOrders selById(Integer id);
	/**
	 * 查询全部订单
	 * @param uid
	 * @return
	 */
	List<TicketOrders> selAllOrderByUid(String uid);
	/**
	 * 添加出行人
	 * @param ticketorderUser
	 * @return
	 */
	boolean insertTicketorderUser(TicketorderUser ticketorderUser);
	/**
	 * 查询订单
	 * @param useflag
	 * @param uid
	 * @return
	 */
	List<TicketOrders> selOrderByUidAndUseflag(@Param("useflag")String useflag, @Param("uid")String uid);
	/**
	 * 根据id查询app订单
	 * @param id
	 * @return
	 */
	TicketOrders selDeatilsById(String id);
}